<!--pk--->
<template>
    <div class="pk-view">
        <div class="thead">
            <div class="td1"></div>
            <div class="td2"></div>
            <div class="td2"></div>
            <div class="td2"></div>
        </div>
        <div v-for="(item,index) in list" :key="index">
            <div class="title">{{item.name}}</div>
            <div class="tbody">
                <div class="td">
                    <div class="tds" v-for="item1 in item.thead" :key="item1">{{item1}}</div>
                </div>
                <div class="td1"  v-for="item1 in item.list" :key="item1">
                    <div class="td1s" v-for="(item2) in item1" :key="item2">{{item2}}</div>
                </div>
            </div>
        </div>
    </div>
</template>
<script>
export default {
    name:'',
    data(){
        return{
            list:[
                {
                    name:"基本信息",
                    thead:["性别","年龄","级别","训练年限"],
                    list:[["","","",""],["","","",""],["","","",""]]
                },
                {
                    name:"水上专项训练PK",
                    thead:["1X","2X","2-","4X","4-","8+","L2X"],
                    list:[
                        ["","","","","","",""],
                        ["","","","","","",""],
                        ["","","","","","",""]]
                }
            ]
        }
    },
    methods:{

    },
    created(){

    }
}
</script>
<style lang="scss" scoped>
    .pk-view{
        width: 100%;
        overflow: auto;
        font-size: 14px;
        min-width: 1000px;
        .thead{
            height: 260px;
            display: flex;
            align-items: center;
            border: 1px solid #ccc;
            .td1{
                width: 19%;
                height: 100%;
                padding-left: 40px;
                box-sizing: border-box;
                background: #f5f5f5;
                border-right: 1px solid #ccc;
            }
            .td2{
                text-align: center;
                width: 27%;
                background: #fff;
                border-right: 1px solid #ccc;
            }
            .td2:last-child{
                border: none;
            }
        }
        .tbody{
            overflow: hidden;
            //第一列
            .td{
                width: 19%;
                float: left;
                border-top: 1px solid #ccc;
                .tds{
                    width: 100%;
                    text-align: center;
                    height: 40px;
                    line-height: 40px;
                    border-right: 1px solid #ccc;
                    border-bottom: 1px solid #ccc;
                }
            }
            //2-4
            .td1{
                width: 27%;
                float: left;
                border-top: 1px solid #ccc;
                .td1s{
                    width:100%;
                    text-align: center;
                    height: 40px;
                    line-height: 40px;
                    border-right: 1px solid #ccc;
                    border-bottom: 1px solid #ccc;
                }
            }
        }
        
        
    }
    .title{
        height: 50px;
        line-height: 50px;
        padding: 0 60px;
        font-weight: 900;
        color: #222;
        font-size: 16px;
    }
</style>